<!doctype html>
<html lang="zh">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Vue 示例</title>
    </head>
    <body>
        <div id="app">
            <ul>
                <li v-for="book in books">{{book.name}}</li>
            </ul>
        </div>

        <script src="vue.min.js"></script>
        <script>
            new Vue({
                el: "#app",
                data: {
                    books: [
                        {name: "《Vue.js实战》"},
                        {name: "《JavaScript 语言精粹》"},
                        {name: "《JavaScript 高级程序设计》"}
                    ]
                }
            });
        </script>
    </body>
</html>